package com.xuecheng.content.mappers;

import com.xuecheng.commons.model.vo.TeachplanVo;
import com.xuecheng.content.domain.Teachplan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 课程计划 Mapper 接口
 * </p>
 *
 * @author 七安
 * @since 2022-09-17
 */
@Mapper
public interface TeachplanMapper extends BaseMapper<Teachplan> {

    /**
     * 根据课程id查询课程计划。（包括1，2，3级结构）
     *
     * @param courseId 课程id
     * @return 查到的结果
     */
    List<TeachplanVo> findTeachplanByCourseId(Long courseId);
}
